package com.community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.community.mapper.PeopleDAO;
import com.community.dto.PeopleDTO;
import com.community.po.PeoplePO;
import com.community.service.PeopleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo:
 * @Author：高尚磊
 * @date: 2024/6/4 16:12
 */
@Slf4j
@Service
public class PeopleServiceImpl extends BaseServiceImpl<PeopleDAO, PeoplePO, PeopleDTO> implements PeopleService {
//    @Override
//    public Page<PeopleDTO> getPeopleAll(PeopleDTO peopleDTO) {
//        return this.baseMapper.getPeopleAll(peopleDTO);
//    }
//
//    @Override
//    public PeoplePO getRecordId(Long id) {
//        return this.baseMapper.getById(id);
//    }


    @Override
    public PeoplePO getById(Long id) {
        return  this.baseMapper.getById(id);
    }

    @Override
    public Page<?> page(PeopleDTO peopleDTO) {
        return  this.baseMapper.page(peopleDTO);
    }
}
